package ink.onei.message.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import ink.onei.common.annotation.Excel;
import ink.onei.common.core.domain.BaseEntity;

/**
 * 记录对象 message_record
 * 
 * @author nekotako
 * @date 2024-02-02
 */
public class MessageRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Integer id;

    /** 笔记id */
    @Excel(name = "笔记id")
    private Integer boboId;

    /** 操作 0是点赞，1是收藏，2是评论 */
    @Excel(name = "操作 0是点赞，1是收藏，2是评论")
    private Integer operate;

    /** 操作人id */
    @Excel(name = "操作人id")
    private Integer operateId;

    /** 0未读，1已读 */
    @Excel(name = "0未读，1已读")
    private Integer type;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setBoboId(Integer boboId) 
    {
        this.boboId = boboId;
    }

    public Integer getBoboId() 
    {
        return boboId;
    }
    public void setOperate(Integer operate) 
    {
        this.operate = operate;
    }

    public Integer getOperate() 
    {
        return operate;
    }
    public void setOperateId(Integer operateId) 
    {
        this.operateId = operateId;
    }

    public Integer getOperateId() 
    {
        return operateId;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("boboId", getBoboId())
            .append("operate", getOperate())
            .append("operateId", getOperateId())
            .append("type", getType())
            .toString();
    }
}
